/**
 * Copyright (c) 2010-2011 julewa.com.  
 * All rights reserved. 
 * 
 * @author Huang Benhua
 * @date 2011-7-2
 * 
 **/
package com.julewa.loading;

import java.util.Map;

import org.apache.struts2.util.StrutsTypeConverter;

@SuppressWarnings("rawtypes")
public class StrutsDoubleConvert extends StrutsTypeConverter {

	@Override
	public Object convertFromString(Map context, String[] values, Class toClass) {
		return Double.parseDouble(values[0]);
	}

	@Override
	public String convertToString(Map context, Object o) {
 		return o.toString();
	}

}
